#! gmake	
SHELL = /bin/sh

# MY_HOME is defined as 3 directories up from the curred working directory
MY_HOME = ../../..

# This makefile includes the defaults set in nDefaults.
include $(MY_HOME)/mkinc/nDefaults.mk

LIBS += -lm 


# Add our directory to our flags.
CPPFLAGS += -I$(MY_HOME)/include
CXXFLAGS += -I$(MY_HOME)/include
LDFLAGS += -L$(MY_HOME)/lib -L. 


ifndef NO_HLA13  

  # This section is defined as rtisimple13
  PROGRAMS +=  rtisimple13
   
  # The installation directory
  rtisimple13_INSTALL_DIR    = examples/rtisimple/bin
  # The objects in this section
  rtisimple13_OBJECTS        = simple13.o fedAmb13.o keyboard.o
  #; CXX Flags required by this section.
  rtisimple13_CXXFLAGS       = $(RTI13_CXXFLAGS) $(CXXFLAGS) -DDtHLA13

  # Use the default 1_3 CPPFlags.
  rtisimple13_CPPFLAGS       = $(RTI13_CPPFLAGS) -DRTI_USES_STD_FSTREAM
  # Libraries required for building
  rtisimple13_LIBS           = $(LIBS) -lRTI-NG -lfedtime

endif


ifndef NO_HLA1516

  # This section is defined as rtisimple1516
  PROGRAMS +=  rtisimple1516
   
  # The installation directory
  rtisimple1516_INSTALL_DIR    = examples/rtisimple/bin
  # The objects in this section
  rtisimple1516_OBJECTS        = simple1516.o fedAmb1516.o keyboard.o
  #; CXX Flags required by this section.
  rtisimple1516_CXXFLAGS       = $(RTI13_CXXFLAGS) $(CXXFLAGS) -DDtHLA13

  # Use the default 1516 CPPFlags.
  rtisimple1516_CPPFLAGS       = $(RTI13_CPPFLAGS)  
  # Libraries required for building
  rtisimple1516_LIBS           = $(LIBS) -lrti1516 -lfedtime1516

endif

include $(MY_HOME)/mkinc/nApps.mk


